/**
 * 文 件 名:  SiteService.java
 * 版      权:  财之道  Copyright ©2011-2015 All Rights Reserved
 * 描      述:  
 */
package com.czd.support.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.czd.base.model.Paginate;
import com.czd.base.service.BaseService;
import com.czd.support.model.Site;

/**
 * @Description  站点业务类
 * 
 * @Author  Jun.Yang
 * @Date    2015年3月9日 上午11:57:14
 * @Version v1.0
 */
@Service
public class SiteService extends BaseService<Site> {

	public boolean insert(Site site) {
		return this.insert(sqlId("insert"), site);
	}
	
	public boolean update(Site site) {
		return this.update(sqlId("update"), site);
	}
	
	public boolean delete(int id) {
		return this.delete(sqlId("delete"), id);
	}
	
	public Site findById(int id) {
		return this.selectOneById(sqlId("findById"), id);
	}
	
	public List<Site> findSiteList() {
		return  this.selectList(sqlId("findSiteList"));
	}
	
	public Paginate queryForPage(Site site) {
		return this.queryForPaginate(sqlId("queryForPage"), site);
	}
}
